package com.example.springbootdoc.controller;

import com.example.token.service.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "获取TOKEN")
@RestController
public class TokenController {

    @Autowired
    private TokenService tokenService;

    @ApiOperation("获取TOKEN")
    @GetMapping("/getToken")
    public String test() {
        return tokenService.getToken();
    }
}

